Optimal. Leaf size=148 \[ -\frac {d^5 \left (d^2-e^2 x^2\right )^{1+p}}{2 e^6 (1+p)}+\frac {d^3 \left (d^2-e^2 x^2\right )^{2+p}}{e^6 (2+p)}-\frac {d \left (d^2-e^2 x^2\right )^{3+p}}{2 e^6 (3+p)}+\frac {1}{7} e x^7 \left (d^2-e^2 x^2\right )^p \left (1-\frac {e^2 x^2}{d^2}\right )^{-p} \, _2F_1\left (\frac {7}{2},-p;\frac {9}{2};\frac {e^2 x^2}{d^2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 148, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {778, 272, 45,
372, 371} \begin {gather*} \frac {1}{7} e x^7 \left (d^2-e^2 x^2\right )^p \left (1-\frac {e^2 x^2}{d^2}\right )^{-p} \, _2F_1\left (\frac {7}{2},-p;\frac {9}{2};\frac {e^2 x^2}{d^2}\right )-\frac {d \left (d^2-e^2 x^2\right )^{p+3}}{2 e^6 (p+3)}-\frac {d^5 \left (d^2-e^2 x^2\right )^{p+1}}{2 e^6 (p+1)}+\frac {d^3 \left (d^2-e^2 x^2\right )^{p+2}}{e^6 (p+2)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 272
Rule 371
Rule 372
Rule 778
Rubi steps
\begin {align*} \int x^5 (d+e x) \left (d^2-e^2 x^2\right )^p \, dx &=d \int x^5 \left (d^2-e^2 x^2\right )^p \, dx+e \int x^6 \left (d^2-e^2 x^2\right )^p \, dx\\ &=\frac {1}{2} d \text {Subst}\left (\int x^2 \left (d^2-e^2 x\right )^p \, dx,x,x^2\right )+\left (e \left (d^2-e^2 x^2\right )^p \left (1-\frac {e^2 x^2}{d^2}\right )^{-p}\right ) \int x^6 \left (1-\frac {e^2 x^2}{d^2}\right )^p \, dx\\ &=\frac {1}{7} e x^7 \left (d^2-e^2 x^2\right )^p \left (1-\frac {e^2 x^2}{d^2}\right )^{-p} \, _2F_1\left (\frac {7}{2},-p;\frac {9}{2};\frac {e^2 x^2}{d^2}\right )+\frac {1}{2} d \text {Subst}\left (\int \left (\frac {d^4 \left (d^2-e^2 x\right )^p}{e^4}-\frac {2 d^2 \left (d^2-e^2 x\right )^{1+p}}{e^4}+\frac {\left (d^2-e^2 x\right )^{2+p}}{e^4}\right ) \, dx,x,x^2\right )\\ &=-\frac {d^5 \left (d^2-e^2 x^2\right )^{1+p}}{2 e^6 (1+p)}+\frac {d^3 \left (d^2-e^2 x^2\right )^{2+p}}{e^6 (2+p)}-\frac {d \left (d^2-e^2 x^2\right )^{3+p}}{2 e^6 (3+p)}+\frac {1}{7} e x^7 \left (d^2-e^2 x^2\right )^p \left (1-\frac {e^2 x^2}{d^2}\right )^{-p} \, _2F_1\left (\frac {7}{2},-p;\frac {9}{2};\frac {e^2 x^2}{d^2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.22, size = 132, normalized size = 0.89 \begin {gather*} \frac {\left (d^2-e^2 x^2\right )^p \left (-\frac {7 d \left (d^2-e^2 x^2\right ) \left (2 d^4+2 d^2 e^2 (1+p) x^2+e^4 \left (2+3 p+p^2\right ) x^4\right )}{(1+p) (2+p) (3+p)}+2 e^7 x^7 \left (1-\frac {e^2 x^2}{d^2}\right )^{-p} \, _2F_1\left (\frac {7}{2},-p;\frac {9}{2};\frac {e^2 x^2}{d^2}\right )\right )}{14 e^6} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int x^{5} \left (e x +d \right ) \left (-e^{2} x^{2}+d^{2}\right )^{p}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 937 vs.
\(2 (121) = 242\).
time = 2.36, size = 972, normalized size = 6.57 \begin {gather*} d \left (\begin {cases} \frac {x^{6} \left (d^{2}\right )^{p}}{6} & \text {for}\: e = 0 \\- \frac {2 d^{4} \log {\left (- \frac {d}{e} + x \right )}}{4 d^{4} e^{6} - 8 d^{2} e^{8} x^{2} + 4 e^{10} x^{4}} - \frac {2 d^{4} \log {\left (\frac {d}{e} + x \right )}}{4 d^{4} e^{6} - 8 d^{2} e^{8} x^{2} + 4 e^{10} x^{4}} - \frac {3 d^{4}}{4 d^{4} e^{6} - 8 d^{2} e^{8} x^{2} + 4 e^{10} x^{4}} + \frac {4 d^{2} e^{2} x^{2} \log {\left (- \frac {d}{e} + x \right )}}{4 d^{4} e^{6} - 8 d^{2} e^{8} x^{2} + 4 e^{10} x^{4}} + \frac {4 d^{2} e^{2} x^{2} \log {\left (\frac {d}{e} + x \right )}}{4 d^{4} e^{6} - 8 d^{2} e^{8} x^{2} + 4 e^{10} x^{4}} + \frac {4 d^{2} e^{2} x^{2}}{4 d^{4} e^{6} - 8 d^{2} e^{8} x^{2} + 4 e^{10} x^{4}} - \frac {2 e^{4} x^{4} \log {\left (- \frac {d}{e} + x \right )}}{4 d^{4} e^{6} - 8 d^{2} e^{8} x^{2} + 4 e^{10} x^{4}} - \frac {2 e^{4} x^{4} \log {\left (\frac {d}{e} + x \right )}}{4 d^{4} e^{6} - 8 d^{2} e^{8} x^{2} + 4 e^{10} x^{4}} & \text {for}\: p = -3 \\- \frac {2 d^{4} \log {\left (- \frac {d}{e} + x \right )}}{- 2 d^{2} e^{6} + 2 e^{8} x^{2}} - \frac {2 d^{4} \log {\left (\frac {d}{e} + x \right )}}{- 2 d^{2} e^{6} + 2 e^{8} x^{2}} - \frac {2 d^{4}}{- 2 d^{2} e^{6} + 2 e^{8} x^{2}} + \frac {2 d^{2} e^{2} x^{2} \log {\left (- \frac {d}{e} + x \right )}}{- 2 d^{2} e^{6} + 2 e^{8} x^{2}} + \frac {2 d^{2} e^{2} x^{2} \log {\left (\frac {d}{e} + x \right )}}{- 2 d^{2} e^{6} + 2 e^{8} x^{2}} + \frac {e^{4} x^{4}}{- 2 d^{2} e^{6} + 2 e^{8} x^{2}} & \text {for}\: p = -2 \\- \frac {d^{4} \log {\left (- \frac {d}{e} + x \right )}}{2 e^{6}} - \frac {d^{4} \log {\left (\frac {d}{e} + x \right )}}{2 e^{6}} - \frac {d^{2} x^{2}}{2 e^{4}} - \frac {x^{4}}{4 e^{2}} & \text {for}\: p = -1 \\- \frac {2 d^{6} \left (d^{2} - e^{2} x^{2}\right )^{p}}{2 e^{6} p^{3} + 12 e^{6} p^{2} + 22 e^{6} p + 12 e^{6}} - \frac {2 d^{4} e^{2} p x^{2} \left (d^{2} - e^{2} x^{2}\right )^{p}}{2 e^{6} p^{3} + 12 e^{6} p^{2} + 22 e^{6} p + 12 e^{6}} - \frac {d^{2} e^{4} p^{2} x^{4} \left (d^{2} - e^{2} x^{2}\right )^{p}}{2 e^{6} p^{3} + 12 e^{6} p^{2} + 22 e^{6} p + 12 e^{6}} - \frac {d^{2} e^{4} p x^{4} \left (d^{2} - e^{2} x^{2}\right )^{p}}{2 e^{6} p^{3} + 12 e^{6} p^{2} + 22 e^{6} p + 12 e^{6}} + \frac {e^{6} p^{2} x^{6} \left (d^{2} - e^{2} x^{2}\right )^{p}}{2 e^{6} p^{3} + 12 e^{6} p^{2} + 22 e^{6} p + 12 e^{6}} + \frac {3 e^{6} p x^{6} \left (d^{2} - e^{2} x^{2}\right )^{p}}{2 e^{6} p^{3} + 12 e^{6} p^{2} + 22 e^{6} p + 12 e^{6}} + \frac {2 e^{6} x^{6} \left (d^{2} - e^{2} x^{2}\right )^{p}}{2 e^{6} p^{3} + 12 e^{6} p^{2} + 22 e^{6} p + 12 e^{6}} & \text {otherwise} \end {cases}\right ) + \frac {d^{2 p} e x^{7} {{}_{2}F_{1}\left (\begin {matrix} \frac {7}{2}, - p \\ \frac {9}{2} \end {matrix}\middle | {\frac {e^{2} x^{2} e^{2 i \pi }}{d^{2}}} \right )}}{7} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int x^5\,{\left (d^2-e^2\,x^2\right )}^p\,\left (d+e\,x\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________